package HttpReader;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

public class HttpReader {
	public static void main(String[] args) {
		try {
			URL url = new URL("http://uid.zhongsou.net/MM3/user/recom/WidgetDataSource/GetMemDetailXml.aspx?igid=conglai_gt&club=%E4%B8%9B%E8%8E%B1%E7%BB%BF%E8%8C%B6&type=0");
			URLConnection conn = url.openConnection();
			BufferedReader reader = new BufferedReader(new InputStreamReader(
					conn.getInputStream()));
			String line = null;
			while ((line = reader.readLine()) != null){
				System.out.println(line);
			}
			reader.close();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
